package nl.hva.three2learn.controller;

import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityContextHolder;

public abstract class BaseController {

	protected final boolean isUserLoggedIn() {
		SecurityContext context = SecurityContextHolder.getContext();
		return context.getAuthentication() != null;
	}
}
